package com.apex.system.test;

import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;

/**
 * Apex verifyInterceptor
 *
 * @author Bangda Xiao
 */
@SpringBootTest
public class verifyInterceptor {
    @Autowired
    private ApplicationContext applicationContext;

    @Test
    public void testMybatisPlusInterceptor() {
        MybatisPlusInterceptor interceptor = applicationContext.getBean(MybatisPlusInterceptor.class);
        if (interceptor != null) {
            System.out.println("MybatisPlusInterceptor has been successfully injected.");
        } else {
            System.out.println("MybatisPlusInterceptor not found.");
        }
    }
}
